//
//  testController.swift
//  GZWeibo007
//
//  Created by Mac on 15/12/24.
//  Copyright © 2015年 Apple. All rights reserved.
//

import UIKit

class testController: UITableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        tableView.registerNib(UINib(nibName: "JwyPinglunCell", bundle: nil), forCellReuseIdentifier: "pinglunCell")
        
        tableView.estimatedRowHeight=100
        tableView.rowHeight=UITableViewAutomaticDimension
            }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

    // MARK: - Table view data source

    override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
        // #warning Incomplete implementation, return the number of sections
        return 1
    }

    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        // #warning Incomplete implementation, return the number of rows
        return 1
    }

   override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
    
    let cell=tableView.dequeueReusableCellWithIdentifier("pinglunCell", forIndexPath: indexPath)
    
    return cell
    
    }

}
